
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct Page<T> {
    pub records: Vec<T>,
    pub total: u64,
    pub total_page: u64,
    pub page_no: u64,
    pub page_size: u64,
}

#[derive(Clone, Debug, Serialize, Deserialize, Default)]
pub struct PageParam {
    pub page_no: Option<u64>,
    pub page_size: Option<u64>,
}